<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%
	request.setAttribute("path", request.getContextPath());
%>
<script type="text/javascript">
$(function(){
	common.ajaxQuery("${root}/shop/list/pop");
});

</script>
<jsp:include page="../../base/master_js.jsp"></jsp:include>
<form class="form-horizontal" id="queryForm" role="form">
	<input name="orderName" value="name" type="hidden">
	<input name="shopType" value="${shopType}" type="hidden">
	<table class="table table-hover">
			<tr>
				<th>大区:</th>
				<td>
				<select id="firstOrg" name="firstOrg" class="input-medium" onchange="firstOrgChange(this,'secondOrg',false)">
					<option value=""></option>
					<c:forEach var="item" items="${firstOrgs}">
						<option value="${item.id }"><c:out value="${item.name }"/></option>
					</c:forEach>
				</select>
				</td>
				<th>办事处:</th>
				<td>
					<select id="secondOrg" name="secondOrg" class="input-medium" >
					</select>
				</td>
				<td> <button type="button" class="btn btn-primary btn-small " onclick="common.ajaxQuery('${root}/shop/list/pop')">查询</button></td>
			</tr>
	</table>
</form>
<div class="table-responsive">
<table class="table table-striped table-bordered table-condensed">
	<thead>
		<tr >
			<th class="span1 text-center">大区</th>
			<th class="span1 text-center">办事处</th>
			<th class="text-center">网点</th>
			<th class="span1 text-center">负责人</th>
			<th class="span1 text-center">电话</th>
			<th class="span1 text-center">
				&nbsp;
			</th>
		</tr>
	</thead>
	<tbody id="dataList">
	</tbody>
</table>
</div>

